package com.qczl.pme.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 视频信息
 * 
 * @author SongR
 *
 */
@Entity
@Table(name = "pme_basis_video")
public class PMEVideo implements Serializable {
	private static final long serialVersionUID = -7526537179494100268L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "video_id")
	private Long id;// 编号
	@Column(name = "video_name")
	private String name;// 视频名称
	@Column(name = "video_playurl")
	private String playUrl;// 播放地址
	@Column(name = "video_downloadurl")
	private String downloadUrl;// 下载地址
	@Column(name = "video_duration")
	private Long duration;// 时长
	@Column(name = "video_starttime")
	private Date startTime; // 开始时间
	@Column(name = "video_endtime")
	private Date endTime;// 结束时间
	@Column(name = "video_creattime")
	private Date creatTime;// 创建时间
	@Column(name = "video_taskid")
	private String taskId;// 任务编号
	@Column(name = "video_status")
	private Integer status;
	@Column(name = "metting_id")
	private String mettingId;
	@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
	@JoinColumn(name = "camera_id", referencedColumnName = "camera_id", nullable = false)
	private PMECamera camera;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPlayUrl() {
		return playUrl;
	}

	public void setPlayUrl(String playUrl) {
		this.playUrl = playUrl;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public PMECamera getCamera() {
		return camera;
	}

	public void setCamera(PMECamera camera) {
		this.camera = camera;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMettingId() {
		return mettingId;
	}

	public void setMettingId(String mettingId) {
		this.mettingId = mettingId;
	}
	
}
